#include <iostream>

using namespace std;

int main()
{
	cout << 2 + 9 * 2 + 81 * 9 * 2 << endl;
	return 0;
}